const fs = require('fs')

const files = fs.readdirSync('./')

files.forEach((item) => {
  const data = item.split('-')
  let [num, name] = data
  if (Number(num) < 10) {
    num = '0' + num
  }
  const newName = num + '-' + name
  fs.renameSync(`./${item}`, `./${newName}`)
})
